package com.hagos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class Fourth extends Activity {
	
	TextView tv = null;
	Toast toast = null;
	int duration = 0;
	
	CharSequence memdump = "";
	
    /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   	super.onCreate(savedInstanceState);
		tv = (TextView) findViewById(R.id.tview);
		setContentView(R.layout.main);
		
		memdump =  "onCreate()";
		duration = Toast.LENGTH_LONG;
		toast = Toast.makeText(this, memdump,duration);
		toast.show();
		
    }
	
	public void onStart() {
		super.onStart();
		memdump = "tv is NULL" + (tv == null);
		Toast.makeText(this, memdump, duration );
		toast.show();
		
	}
	
	public void onResume(){
		super.onResume();
		toast = Toast.makeText(this, "tv is NULL " + (tv == null), duration);
		toast.show();
	}
	
	public void onStop(){
		super.onStop();
		toast = Toast.makeText(this,"Stopping now",duration);
	}

}
